package com.intellij.licensecommon.util;

import java.math.BigInteger;

public class b {
    private static BigInteger PUBLIC_MOD = new BigInteger("f0dd6995c4bd3223641c79c8608d74f32ed54a8bdae468eb5ac53f1f1c8925e263f82317356bc73b1c82b520630250212416c99cb39a8b7c2611e35552e166b9", 16);
    private static BigInteger PUBLIC_EXP = new BigInteger("10001", 16);

    public static SubscriptionLicenseInfo a(String licenseKey, String username) throws a {
        SubscriptionLicenseInfo info = new SubscriptionLicenseInfo();

        byte[] licenseBytes = SubscriptionLicenseDecoder.decode(licenseKey, info, PUBLIC_EXP, PUBLIC_MOD);
        SubscriptionLicenseDecoder.a(licenseBytes, info, username, 14);
        SubscriptionLicenseDecoder.b(licenseBytes, info, username, -1);
        return info;
    }
}
